package com.simple.rules;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <h3>springcloud</h3>
 * <p></p>
 *
 * @author : 你的名字
 * @date : 2020-05-20 23:13
 **/
@Configuration
public class MyRule {
    @Bean
    public IRule myRule() {
        //默认轮询，现在自定义
        return new MyRandomRule();
    }
}
